// import request from '@/utils/request.js'
import request from '@/utils/mgop'

//申请为专家
export function applyExpert(data) {
  return request({ api: 'mgop.hp.reduce.expertApply', type: 'POST', data })
}
//专家列表
export function getExpertList(params) {
  return request({
    api: 'mgop.hp.reduce.expertList',
    type: 'GET',
    data: params
  })
}
//专家详情
export function getExpertInfo(id) {
  return request({
    api: 'mgop.hp.reduce.expertInfo',
    type: 'GET',
    data: { id }
  })
}
//专家点单
export function expertOrder(id, data) {
  return request({
    api: 'mgop.hp.reduce.expertOrder',
    type: 'POST',
    data: { ...data, id }
  })
}
//专家类型
export function getExpertType() {
  return request({ api: 'mgop.hp.reduce.expertType', type: 'GET' })
}
